package org.jeecg.glr.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 网关模式
 * @Author: jeecg-boot
 * @Date:   2020-03-09
 * @Version: V1.0
 */
@Data
@TableName("glr_pattern")
public class GlrPattern implements Serializable {
    private static final long serialVersionUID = 1L;
    
	/**主键*/
	@TableId(type = IdType.UUID)
    private String id;
	/**模式名称*/
	@Excel(name = "模式名称", width = 15)
    private String patternName;
	/**命令时间*/
	@Excel(name = "命令时间", width = 15)
    private String commandTimea;
	/**亮度*/
	@Excel(name = "亮度", width = 15)
    private Integer brightValuea;
	/**时间b*/
	@Excel(name = "时间b", width = 15)
    private String commandTimeb;

	/**类型b*/
	@Excel(name = "类型b", width = 15)
	@Dict(dicCode = "glr_pattern_time")
	private String typeb;
	/**类型c*/
	@Excel(name = "类型c", width = 15)
	@Dict(dicCode = "glr_pattern_time")
	private String typec;
	private String timeb;
	private String timec;

	private String type;
	@Dict(dicCode = "sys_yn")
	private String selfMotionYn;//是否自动模式
	/**亮度b*/
	@Excel(name = "亮度b", width = 15)
    private Integer brightValueb;
	/**时间c*/
	@Excel(name = "时间c", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private String commandTimec;
	/**亮度c*/
	@Excel(name = "亮度c", width = 15)
    private Integer brightValuec;
	/**时间d*/
	@Excel(name = "时间d", width = 15)
    private String commandTimed;
	/**亮度d*/
	@Excel(name = "亮度d", width = 15)
    private Integer brightValued;
	/**时间e*/
	@Excel(name = "时间e", width = 15)
    private String commandTimee;
	/**亮度e*/
	@Excel(name = "亮度e", width = 15)
    private Integer brightValuee;

	/**创建人*/
	@Excel(name = "创建人", width = 15)
    private String createBy;
	/**创建日期*/
	@Excel(name = "创建日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
    private String updateBy;
	/**更新日期*/
	@Excel(name = "更新日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
	/**所属部门*/
	@Excel(name = "所属部门", width = 15)
    private String sysOrgCode;
	/**所属公司*/
	@Excel(name = "所属公司", width = 15)
    private String sysCompanyCode;

	@TableField(exist = false)
	private String sunupTime;//日出关灯
	@TableField(exist = false)
	private String sunsetTime;//日落开灯

	@TableField(exist = false)
	private String gateWayCode;

}
